package com.vegetable.modules.entity.inbound;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.vegetable.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 入库-代办交货商品包装表
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AgentDeliveryDetailPack对象", description="入库-代办交货商品包装表")
public class AgentDeliveryDetailPack extends BaseEntity {

    @ApiModelProperty(value = "商品id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long detailId;

    @ApiModelProperty(value = "代办包装材料id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long costClauseId;

    @ApiModelProperty(value = "代办包装材料名称")
    private String costClauseName;

    @ApiModelProperty(value = "包装规格id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long specsId;

    @ApiModelProperty(value = "规格")
    private String specsName;

    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "数量")
    private BigDecimal number;

    @ApiModelProperty(value = "价格")
    private BigDecimal money;

    @ApiModelProperty(value = "模式：0待办料，1公司料，2班组料")
    private Integer mode;
    @ApiModelProperty(value = "订单类型：0代办订单 1打包加工")
    private Integer orderType;

    @ApiModelProperty(value = "每件标准数量")
    private BigDecimal standardNumber;

    @ApiModelProperty(value = "成本归属：0蔬菜成本，1包装成本")
    private Integer packBelong = 1;


}
